/**
 * @author		Sergey Suzdalskiy
 * @e-mail:		sergey.suzdalskiy@gmail.com
 */
package ua.kiev.gcore.animation
{
	import flash.display.FrameLabel;
	import flash.events.Event;

	public class AnimatedEvent extends Event
	{
		public static var PLAY_FORWARD:String = "play";
		public static var PLAY_BACKWARD:String = "playbackward";
		public static var GOTOANDSTOP:String = "gotoandstop";
		public static var NEXTFRAME:String = "nextframe";
		public static var PREVFRAME:String = "prevframe";
		
		public static var ANIMATIONCOMPLETE:String = "animationcomplete";
		
		
		public var Label:FrameLabel;
		public var Repeat:int;
		public var RepeatCount:int;
		public var Type:String;
		
		public function AnimatedEvent(label:FrameLabel, repeat:int, animatedEventType:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(animatedEventType, bubbles, cancelable);
			this.Label = label;
			this.Repeat = repeat;
			this.Type = animatedEventType;
			RepeatCount = 0;
		}
	}
}